package com.yss.sofa.report.engine.cell.visible.form;

import com.yss.sofa.report.engine.Const;
import com.yss.sofa.report.engine.cell.ReportCell;

public class DataSetListFormCell extends FormCell{
	private static final long serialVersionUID = -4703277110062703758L;
	private String dataset;
	private boolean multi;
	private int search;
	protected void init(){
		super.init();
		multi=false;
		dataset=Const.NONE;
		setSearch(4);
		inputType=Const.FORM_INPUT_TYPE_DATASET_LIST;
	}
	public void assignTo(ReportCell cell){
		DataSetListFormCell _=(DataSetListFormCell)cell;
		super.assignTo(_);
		_.dataset=this.dataset;
		_.multi=this.multi;
		_.search=this.search;
	} 
	public DataSetListFormCell create(){
		DataSetListFormCell _=new DataSetListFormCell();
		this.assignTo(_);
		return _;
	}
	public String getRenderSource() {
		return "dataset-list-field";
	}
	
	public String getDataset() {
	
		return dataset;
	}
	
	public void setDataset(String dataset) {
	
		this.dataset = dataset;
	}
	
	public boolean isMulti() {
	
		return multi;
	}
	public void setMulti(boolean multi) {
	
		this.multi = multi;
	}
	@Override
	public boolean isCustom() {
		return false;
	}
	public int getSearch() {
		return search;
	}
	public void setSearch(int search) {
		this.search = search;
	}
}
